home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / ksgrd / TimerSettings.h < prev   
Encoding:
C/C++ Source or Header  |  2005-10-10  |  1.5 KB  |  57 lines

  1. /*
  2.     KSysGuard, the KDE System Guard
  3.    
  4.     Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
  5.     
  6.     This program is free software; you can redistribute it and/or
  7.     modify it under the terms of version 2 of the GNU General Public
  8.     License as published by the Free Software Foundation.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  18.  
  19.     KSysGuard is currently maintained by Chris Schlaeger <cs@kde.org>.
  20.     Please do not commit any changes without consulting me first. Thanks!
  21.  
  22. */
  23.  
  24. #ifndef KSG_TIMERSETTINGS_H
  25. #define KSG_TIMERSETTINGS_H
  26.  
  27. #include <kdialogbase.h>
  28.  
  29. class QCheckBox;
  30. class QLabel;
  31. class QSpinBox;
  32.  
  33. class KDE_EXPORT TimerSettings : public KDialogBase
  34. {
  35.   Q_OBJECT
  36.  
  37.   public:
  38.     TimerSettings( QWidget *parent, const char *name = 0 );
  39.     ~TimerSettings();
  40.  
  41.     void setUseGlobalUpdate( bool value );
  42.     bool useGlobalUpdate() const;
  43.  
  44.     void setInterval( int interval );
  45.     int interval() const;
  46.  
  47.   private slots:
  48.     void globalUpdateChanged( bool );
  49.  
  50.   private:
  51.     QCheckBox* mUseGlobalUpdate;
  52.     QLabel* mLabel;
  53.     QSpinBox* mInterval;
  54. };
  55.  
  56. #endif
  57.